<!-- Flex 布局 - 主轴对齐方式 -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主轴对齐方式</title>
    <style>
        .box {
            display: flex;

            /* 主轴对齐方式 */
            /* 默认值：从左到右以此沿着主轴排列 */
            /* justify-content: flex-start; */

            /* 从终点依次排列 */
            /* justify-content: flex-end; */

            /* 沿主轴居中排列 */
            justify-content: center;

            /* 均匀排列，空间均分,贴近边框 */
            /* justify-content: space-between;  */

            /* 均匀排列，两则减半 */
            /* justify-content: space-around;  */

            /* 均匀排列，间距相等 */
            justify-content: space-evenly; 

            height: 200px;
            border: 1px solid #000;
        }

        .box div {
            width: 200px;
            height: 100px;
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <div class="box">
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </div>
</body>
</html>